.class public Lcom/jecelyin/editor/v2/ui/JeEditorActivity;
.super Lcom/jecelyin/editor/v2/FullScreenActivity;
.source "JeEditorActivity.java"

# interfaces
.implements Landroid/view/MenuItem$OnMenuItemClickListener;
.implements Les/sf0$k;
.implements Landroid/content/SharedPreferences$OnSharedPreferenceChangeListener;


# instance fields
.field b:Landroidx/appcompat/widget/Toolbar;

.field c:Landroid/widget/LinearLayout;

.field d:Lcom/jecelyin/editor/v2/view/TabViewPager;

.field e:Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;

.field f:Landroidx/recyclerview/widget/RecyclerView;

.field g:Lcom/jecelyin/editor/v2/widget/SymbolBarLayout;

.field private h:Landroid/widget/RelativeLayout;

.field private i:Lcom/jecelyin/editor/v2/ui/g;

.field private j:Lcom/jecelyin/editor/v2/view/menu/a;

.field private k:Lcom/jecelyin/editor/v2/d;

.field private l:Les/lf0;

.field private m:Lcom/jecelyin/editor/v2/ui/e;

.field private n:Landroid/content/Intent;


# direct methods
.method public constructor <init>()V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/jecelyin/editor/v2/FullScreenActivity;-><init>()V

    return-void
.end method

.method private C()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->h:Landroid/widget/RelativeLayout;

    iget-object v1, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->k:Lcom/jecelyin/editor/v2/d;

    invoke-virtual {v1}, Lcom/jecelyin/editor/v2/d;->x()Z

    move-result v1

    if-eqz v1, :cond_0

    const/16 v1, 0x8

    goto :goto_0

    :cond_0
    const/4 v1, 0x0

    :goto_0
    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->setVisibility(I)V

    .line 2
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->k:Lcom/jecelyin/editor/v2/d;

    invoke-virtual {v0, p0}, Lcom/jecelyin/editor/v2/d;->a(Landroid/content/SharedPreferences$OnSharedPreferenceChangeListener;)V

    return-void
.end method

.method private D()Z
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->k:Lcom/jecelyin/editor/v2/d;

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/d;->x()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 2
    sget v0, Lcom/jecelyin/editor/v2/m;->je_readonly_mode_not_support_this_action:I

    invoke-static {p0, v0}, Lcom/jecelyin/common/utils/e;->b(Landroid/content/Context;I)V

    const/4 v0, 0x0

    return v0

    :cond_0
    const/4 v0, 0x1

    return v0
.end method

.method private E()V
    .locals 2

    .line 1
    new-instance v0, Lcom/jecelyin/editor/v2/common/Command;

    sget-object v1, Lcom/jecelyin/editor/v2/common/Command$CommandEnum;->HIDE_SOFT_INPUT:Lcom/jecelyin/editor/v2/common/Command$CommandEnum;

    invoke-direct {v0, v1}, Lcom/jecelyin/editor/v2/common/Command;-><init>(Lcom/jecelyin/editor/v2/common/Command$CommandEnum;)V

    invoke-virtual {p0, v0}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->b(Lcom/jecelyin/editor/v2/common/Command;)V

    return-void
.end method

.method private F()V
    .locals 11

    .line 1
    invoke-virtual {p0}, Lcom/jecelyin/editor/v2/FullScreenActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    .line 2
    iget-object v1, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->b:Landroidx/appcompat/widget/Toolbar;

    sget v2, Lcom/jecelyin/editor/v2/i;->je_toolbar_windows:I

    invoke-static {v0, v2}, Lcom/jecelyin/editor/v2/ui/e;->b(Landroid/content/res/Resources;I)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroidx/appcompat/widget/Toolbar;->setNavigationIcon(Landroid/graphics/drawable/Drawable;)V

    .line 3
    iget-object v1, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->b:Landroidx/appcompat/widget/Toolbar;

    sget v2, Lcom/jecelyin/editor/v2/m;->je_tab:I

    invoke-virtual {v1, v2}, Landroidx/appcompat/widget/Toolbar;->setNavigationContentDescription(I)V

    .line 4
    iget-object v1, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->b:Landroidx/appcompat/widget/Toolbar;

    invoke-virtual {v1}, Landroidx/appcompat/widget/Toolbar;->getMenu()Landroid/view/Menu;

    move-result-object v1

    .line 5
    invoke-static {p0}, Lcom/jecelyin/editor/v2/view/menu/b;->a(Landroid/content/Context;)Lcom/jecelyin/editor/v2/view/menu/b;

    move-result-object v2

    invoke-virtual {v2}, Lcom/jecelyin/editor/v2/view/menu/b;->a()Ljava/util/List;

    move-result-object v2

    .line 6
    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    const/4 v4, 0x2

    const/4 v5, 0x0

    const/4 v6, 0x1

    if-eqz v3, :cond_1

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/jecelyin/editor/v2/view/menu/c;

    .line 7
    invoke-virtual {v3}, Lcom/jecelyin/editor/v2/view/menu/c;->getItemId()I

    move-result v7

    invoke-virtual {v3}, Lcom/jecelyin/editor/v2/view/menu/c;->d()I

    move-result v8

    invoke-interface {v1, v6, v7, v5, v8}, Landroid/view/Menu;->add(IIII)Landroid/view/MenuItem;

    move-result-object v5

    .line 8
    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v7

    sget v8, Lcom/jecelyin/editor/v2/k;->je_toolbar_menu_item:I

    const/4 v9, 0x0

    invoke-virtual {v7, v8, v9}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v7

    .line 9
    sget v8, Lcom/jecelyin/editor/v2/j;->item_root_view:I

    invoke-virtual {v7, v8}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v8

    .line 10
    sget v9, Lcom/jecelyin/editor/v2/j;->icon:I

    invoke-virtual {v7, v9}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v9

    check-cast v9, Landroid/widget/ImageView;

    .line 11
    invoke-virtual {v3}, Lcom/jecelyin/editor/v2/view/menu/c;->c()I

    move-result v10

    invoke-static {v0, v10}, Lcom/jecelyin/editor/v2/ui/e;->b(Landroid/content/res/Resources;I)Landroid/graphics/drawable/Drawable;

    move-result-object v10

    invoke-virtual {v9, v10}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 12
    sget v9, Lcom/jecelyin/editor/v2/j;->title:I

    invoke-virtual {v7, v9}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v9

    check-cast v9, Landroid/widget/TextView;

    .line 13
    invoke-virtual {v3}, Lcom/jecelyin/editor/v2/view/menu/c;->d()I

    move-result v3

    invoke-virtual {v9, v3}, Landroid/widget/TextView;->setText(I)V

    .line 14
    invoke-interface {v5}, Landroid/view/MenuItem;->getItemId()I

    move-result v3

    sget v9, Lcom/jecelyin/editor/v2/j;->je_m_edit:I

    if-ne v3, v9, :cond_0

    .line 15
    sget v3, Lcom/jecelyin/editor/v2/i;->je_m_edit_background:I

    invoke-virtual {v8, v3}, Landroid/view/View;->setBackgroundResource(I)V

    .line 16
    iget-object v3, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->k:Lcom/jecelyin/editor/v2/d;

    invoke-virtual {v3}, Lcom/jecelyin/editor/v2/d;->x()Z

    move-result v3

    xor-int/2addr v3, v6

    invoke-virtual {v8, v3}, Landroid/view/View;->setSelected(Z)V

    goto :goto_1

    :cond_0
    const v3, 0x106000d

    .line 17
    invoke-virtual {v8, v3}, Landroid/view/View;->setBackgroundResource(I)V

    .line 18
    :goto_1
    invoke-interface {v5, v4}, Landroid/view/MenuItem;->setShowAsAction(I)V

    .line 19
    invoke-interface {v5, v7}, Landroid/view/MenuItem;->setActionView(Landroid/view/View;)Landroid/view/MenuItem;

    .line 20
    invoke-virtual {v7, v5}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 21
    new-instance v3, Lcom/jecelyin/editor/v2/ui/JeEditorActivity$e;

    invoke-direct {v3, p0}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity$e;-><init>(Lcom/jecelyin/editor/v2/ui/JeEditorActivity;)V

    invoke-virtual {v7, v3}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    goto :goto_0

    .line 22
    :cond_1
    sget v2, Lcom/jecelyin/editor/v2/j;->je_m_menu:I

    sget v3, Lcom/jecelyin/editor/v2/m;->je_more_menu:I

    invoke-virtual {p0, v3}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-interface {v1, v6, v2, v5, v3}, Landroid/view/Menu;->add(IIILjava/lang/CharSequence;)Landroid/view/MenuItem;

    move-result-object v1

    .line 23
    sget v2, Lcom/jecelyin/editor/v2/i;->je_toolbar_more:I

    invoke-static {v0, v2}, Lcom/jecelyin/editor/v2/ui/e;->b(Landroid/content/res/Resources;I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    invoke-interface {v1, v0}, Landroid/view/MenuItem;->setIcon(Landroid/graphics/drawable/Drawable;)Landroid/view/MenuItem;

    .line 24
    invoke-interface {v1, p0}, Landroid/view/MenuItem;->setOnMenuItemClickListener(Landroid/view/MenuItem$OnMenuItemClickListener;)Landroid/view/MenuItem;

    .line 25
    invoke-interface {v1, v4}, Landroid/view/MenuItem;->setShowAsAction(I)V

    .line 26
    new-instance v0, Lcom/jecelyin/editor/v2/view/menu/a;

    iget-object v1, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->b:Landroidx/appcompat/widget/Toolbar;

    invoke-direct {v0, p0, v1}, Lcom/jecelyin/editor/v2/view/menu/a;-><init>(Lcom/jecelyin/editor/v2/ui/JeEditorActivity;Landroid/view/View;)V

    iput-object v0, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->j:Lcom/jecelyin/editor/v2/view/menu/a;

    .line 27
    new-instance v0, Lcom/jecelyin/editor/v2/ui/g;

    invoke-direct {v0, p0}, Lcom/jecelyin/editor/v2/ui/g;-><init>(Lcom/jecelyin/editor/v2/ui/JeEditorActivity;)V

    iput-object v0, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->i:Lcom/jecelyin/editor/v2/ui/g;

    return-void
.end method

.method private G()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->f:Landroidx/recyclerview/widget/RecyclerView;

    new-instance v1, Landroidx/recyclerview/widget/LinearLayoutManager;

    invoke-direct {v1, p0}, Landroidx/recyclerview/widget/LinearLayoutManager;-><init>(Landroid/content/Context;)V

    invoke-virtual {v0, v1}, Landroidx/recyclerview/widget/RecyclerView;->setLayoutManager(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;)V

    .line 2
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->e:Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->setEnabled(Z)V

    .line 3
    invoke-direct {p0}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->F()V

    .line 4
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->m:Lcom/jecelyin/editor/v2/ui/e;

    if-nez v0, :cond_0

    .line 5
    new-instance v0, Lcom/jecelyin/editor/v2/ui/e;

    invoke-direct {v0, p0}, Lcom/jecelyin/editor/v2/ui/e;-><init>(Lcom/jecelyin/editor/v2/ui/JeEditorActivity;)V

    iput-object v0, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->m:Lcom/jecelyin/editor/v2/ui/e;

    .line 6
    :cond_0
    invoke-direct {p0}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->H()V

    return-void
.end method

.method private H()V
    .locals 6

    const/4 v0, 0x0

    const/4 v1, 0x1

    .line 1
    :try_start_0
    invoke-direct {p0}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->I()Z

    move-result v2

    if-nez v2, :cond_0

    .line 2
    invoke-virtual {p0}, Lcom/jecelyin/common/app/JecActivity;->u()Landroid/content/Context;

    sget v2, Lcom/jecelyin/editor/v2/m;->je_cannt_handle_intent_x:I

    new-array v3, v1, [Ljava/lang/Object;

    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v4

    invoke-virtual {v4}, Landroid/content/Intent;->toString()Ljava/lang/String;

    move-result-object v4

    aput-object v4, v3, v0

    invoke-virtual {p0, v2, v3}, Landroid/app/Activity;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-static {p0, v2}, Lcom/jecelyin/common/utils/e;->a(Landroid/content/Context;Ljava/lang/String;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception v2

    .line 3
    invoke-static {v2}, Lcom/jecelyin/common/utils/c;->b(Ljava/lang/Throwable;)I

    .line 4
    invoke-virtual {p0}, Lcom/jecelyin/common/app/JecActivity;->u()Landroid/content/Context;

    sget v3, Lcom/jecelyin/editor/v2/m;->je_handle_intent_x_error:I

    new-array v1, v1, [Ljava/lang/Object;

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v5

    invoke-virtual {v5}, Landroid/content/Intent;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v5, "\n"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    aput-object v2, v1, v0

    invoke-virtual {p0, v3, v1}, Landroid/app/Activity;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-static {p0, v0}, Lcom/jecelyin/common/utils/e;->a(Landroid/content/Context;Ljava/lang/String;)V

    :cond_0
    :goto_0
    return-void
.end method

.method private I()Z
    .locals 5
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Throwable;
        }
    .end annotation

    .line 1
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const/4 v1, 0x1

    if-nez v0, :cond_0

    return v1

    .line 2
    :cond_0
    iput-object v0, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->n:Landroid/content/Intent;

    .line 3
    invoke-virtual {v0}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v2

    if-eqz v2, :cond_e

    const-string v3, "android.intent.action.MAIN"

    .line 4
    invoke-virtual {v3, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_1

    goto/16 :goto_2

    :cond_1
    const-string v3, "android.intent.action.VIEW"

    .line 5
    invoke-virtual {v3, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    const/4 v4, 0x0

    if-nez v3, :cond_5

    const-string v3, "android.intent.action.EDIT"

    invoke-virtual {v3, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_2

    goto :goto_0

    :cond_2
    const-string v3, "android.intent.action.SEND"

    .line 6
    invoke-virtual {v3, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_c

    invoke-virtual {v0}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v2

    if-eqz v2, :cond_c

    .line 7
    invoke-virtual {v0}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v0

    if-eqz v0, :cond_3

    const-string v2, "android.intent.extra.TEXT"

    .line 8
    invoke-virtual {v0, v2}, Landroid/os/Bundle;->getCharSequence(Ljava/lang/String;)Ljava/lang/CharSequence;

    move-result-object v4

    :cond_3
    if-eqz v4, :cond_4

    .line 9
    invoke-direct {p0, v4}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->b(Ljava/lang/CharSequence;)V

    return v1

    :cond_4
    const-string v2, "android.intent.extra.STREAM"

    .line 10
    invoke-virtual {v0, v2}, Landroid/os/Bundle;->get(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    if-eqz v0, :cond_c

    .line 11
    instance-of v2, v0, Landroid/net/Uri;

    if-eqz v2, :cond_c

    .line 12
    check-cast v0, Landroid/net/Uri;

    invoke-virtual {v0}, Landroid/net/Uri;->getPath()Ljava/lang/String;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->b(Ljava/lang/String;)V

    return v1

    .line 13
    :cond_5
    :goto_0
    invoke-virtual {v0}, Landroid/content/Intent;->getScheme()Ljava/lang/String;

    move-result-object v2

    if-eqz v2, :cond_d

    const-string v3, "content"

    .line 14
    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_a

    .line 15
    invoke-virtual {v0}, Landroid/content/Intent;->getData()Landroid/net/Uri;

    move-result-object v0

    .line 16
    :try_start_0
    invoke-static {p0, v0}, Les/kf0;->c(Landroid/content/Context;Landroid/net/Uri;)Ljava/io/File;

    move-result-object v2

    if-eqz v2, :cond_6

    .line 17
    invoke-virtual {v2}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v4

    :cond_6
    if-nez v4, :cond_7

    .line 18
    invoke-static {v0}, Lcom/jecelyin/editor/v2/b;->a(Landroid/net/Uri;)Ljava/lang/String;

    move-result-object v4

    :cond_7
    const/16 v2, 0x4000

    if-eqz v4, :cond_9

    .line 19
    invoke-static {v4}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v3

    if-nez v3, :cond_9

    .line 20
    new-instance v3, Ljava/io/File;

    invoke-direct {v3, v4}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 21
    invoke-virtual {v3}, Ljava/io/File;->exists()Z

    move-result v3

    if-eqz v3, :cond_8

    .line 22
    invoke-direct {p0, v4}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->b(Ljava/lang/String;)V

    return v1

    .line 23
    :cond_8
    invoke-virtual {p0}, Landroid/app/Activity;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v3

    invoke-virtual {v3, v0}, Landroid/content/ContentResolver;->openInputStream(Landroid/net/Uri;)Ljava/io/InputStream;

    move-result-object v3

    .line 24
    invoke-static {v3}, Les/df0;->a(Ljava/io/InputStream;)Ljava/lang/String;

    move-result-object v3

    .line 25
    invoke-virtual {p0}, Landroid/app/Activity;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v4

    invoke-virtual {v4, v0}, Landroid/content/ContentResolver;->openInputStream(Landroid/net/Uri;)Ljava/io/InputStream;

    move-result-object v0

    .line 26
    invoke-static {v0, v2, v3}, Lcom/jecelyin/common/utils/b;->a(Ljava/io/InputStream;ILjava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 27
    invoke-direct {p0, v0}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->b(Ljava/lang/CharSequence;)V

    goto :goto_1

    .line 28
    :cond_9
    invoke-virtual {p0}, Landroid/app/Activity;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v3

    invoke-virtual {v3, v0}, Landroid/content/ContentResolver;->openInputStream(Landroid/net/Uri;)Ljava/io/InputStream;

    move-result-object v3

    .line 29
    invoke-static {v3}, Les/df0;->a(Ljava/io/InputStream;)Ljava/lang/String;

    move-result-object v3

    .line 30
    invoke-virtual {p0}, Landroid/app/Activity;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v4

    invoke-virtual {v4, v0}, Landroid/content/ContentResolver;->openInputStream(Landroid/net/Uri;)Ljava/io/InputStream;

    move-result-object v0

    .line 31
    invoke-static {v0, v2, v3}, Lcom/jecelyin/common/utils/b;->a(Ljava/io/InputStream;ILjava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 32
    invoke-direct {p0, v0}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->b(Ljava/lang/CharSequence;)V
    :try_end_0
    .catch Ljava/lang/OutOfMemoryError; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    .line 33
    :catch_0
    sget v0, Lcom/jecelyin/editor/v2/m;->je_out_of_memory_error:I

    invoke-static {p0, v0}, Lcom/jecelyin/common/utils/e;->b(Landroid/content/Context;I)V

    :goto_1
    return v1

    :cond_a
    const-string v3, "file"

    .line 34
    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_c

    .line 35
    invoke-virtual {v0}, Landroid/content/Intent;->getData()Landroid/net/Uri;

    move-result-object v0

    if-eqz v0, :cond_b

    .line 36
    invoke-virtual {v0}, Landroid/net/Uri;->getPath()Ljava/lang/String;

    move-result-object v4

    .line 37
    :cond_b
    invoke-static {v4}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_c

    .line 38
    invoke-direct {p0, v4}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->b(Ljava/lang/String;)V

    return v1

    :cond_c
    const/4 v0, 0x0

    return v0

    .line 39
    :cond_d
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->i:Lcom/jecelyin/editor/v2/ui/g;

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/ui/g;->b()V

    return v1

    .line 40
    :cond_e
    :goto_2
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->i:Lcom/jecelyin/editor/v2/ui/g;

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/ui/g;->b()V

    return v1
.end method

.method private J()V
    .locals 4

    const/4 v0, 0x2

    new-array v1, v0, [Ljava/lang/String;

    const/4 v2, 0x0

    const-string v3, "android.permission.READ_EXTERNAL_STORAGE"

    aput-object v3, v1, v2

    const-string v2, "android.permission.WRITE_EXTERNAL_STORAGE"

    const/4 v3, 0x1

    aput-object v2, v1, v3

    .line 1
    invoke-static {p0, v2}, Landroidx/core/app/ActivityCompat;->shouldShowRequestPermissionRationale(Landroid/app/Activity;Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_0

    const/4 v0, 0x0

    .line 2
    sget v2, Lcom/jecelyin/editor/v2/m;->je_need_to_enable_read_storage_permissions:I

    invoke-virtual {p0, v2}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v2

    new-instance v3, Lcom/jecelyin/editor/v2/ui/JeEditorActivity$b;

    invoke-direct {v3, p0, v1}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity$b;-><init>(Lcom/jecelyin/editor/v2/ui/JeEditorActivity;[Ljava/lang/String;)V

    invoke-static {p0, v0, v2, v3}, Lcom/jecelyin/common/utils/e;->a(Landroid/content/Context;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Lcom/jecelyin/common/utils/e$d;)V

    goto :goto_0

    .line 3
    :cond_0
    invoke-static {p0, v1, v0}, Landroidx/core/app/ActivityCompat;->requestPermissions(Landroid/app/Activity;[Ljava/lang/String;I)V

    :goto_0
    return-void
.end method

.method private K()V
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->k:Lcom/jecelyin/editor/v2/d;

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/d;->h()I

    move-result v0

    if-nez v0, :cond_0

    const/4 v0, -0x1

    .line 2
    invoke-virtual {p0, v0}, Landroid/app/Activity;->setRequestedOrientation(I)V

    goto :goto_0

    :cond_0
    const/4 v1, 0x1

    if-ne v1, v0, :cond_1

    const/4 v0, 0x0

    .line 3
    invoke-virtual {p0, v0}, Landroid/app/Activity;->setRequestedOrientation(I)V

    goto :goto_0

    :cond_1
    const/4 v2, 0x2

    if-ne v2, v0, :cond_2

    .line 4
    invoke-virtual {p0, v1}, Landroid/app/Activity;->setRequestedOrientation(I)V

    :cond_2
    :goto_0
    return-void
.end method

.method private L()V
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->c:Landroid/widget/LinearLayout;

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    iget-object v1, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->c:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    .line 2
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->d:Lcom/jecelyin/editor/v2/view/TabViewPager;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->setVisibility(I)V

    .line 3
    invoke-direct {p0}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->G()V

    .line 4
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v2, "islocalopen"

    .line 5
    invoke-virtual {v0, v2, v1}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v0

    if-nez v0, :cond_0

    .line 6
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->n:Landroid/content/Intent;

    const/4 v1, 0x3

    invoke-direct {p0, v0, v1}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->a(Landroid/content/Intent;I)V

    .line 7
    :cond_0
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->n:Landroid/content/Intent;

    const/4 v1, 0x4

    invoke-direct {p0, v0, v1}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->a(Landroid/content/Intent;I)V

    return-void
.end method

.method static synthetic a(Lcom/jecelyin/editor/v2/ui/JeEditorActivity;)Lcom/jecelyin/editor/v2/d;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->k:Lcom/jecelyin/editor/v2/d;

    return-object p0
.end method

.method private a(Landroid/content/Intent;I)V
    .locals 1

    if-eqz p2, :cond_2

    const/4 p1, 0x3

    if-eq p2, p1, :cond_1

    const/4 p1, 0x4

    if-eq p2, p1, :cond_0

    goto :goto_0

    .line 38
    :cond_0
    iget-object p1, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->n:Landroid/content/Intent;

    const/4 p2, -0x1

    const-string v0, "open_from"

    invoke-virtual {p1, v0, p2}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result p1

    const/4 p2, 0x1

    if-ne p1, p2, :cond_3

    .line 39
    invoke-static {p2}, Lcom/jecelyin/editor/v2/b;->a(I)V

    goto :goto_0

    .line 40
    :cond_1
    invoke-static {}, Lcom/jecelyin/editor/v2/b;->e()V

    goto :goto_0

    :cond_2
    if-eqz p1, :cond_3

    const/4 p2, 0x0

    const-string v0, "islocalopen"

    .line 41
    invoke-virtual {p1, v0, p2}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result p1

    .line 42
    invoke-static {p1}, Lcom/jecelyin/editor/v2/b;->b(Z)V

    :cond_3
    :goto_0
    return-void
.end method

.method static synthetic a(Lcom/jecelyin/editor/v2/ui/JeEditorActivity;Z)V
    .locals 0

    .line 2
    invoke-direct {p0, p1}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->f(Z)V

    return-void
.end method

.method static synthetic b(Lcom/jecelyin/editor/v2/ui/JeEditorActivity;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->E()V

    return-void
.end method

.method private b(Ljava/lang/CharSequence;)V
    .locals 1

    .line 7
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    return-void

    .line 8
    :cond_0
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->i:Lcom/jecelyin/editor/v2/ui/g;

    invoke-virtual {v0, p1}, Lcom/jecelyin/editor/v2/ui/g;->a(Ljava/lang/CharSequence;)Z

    return-void
.end method

.method private b(Ljava/lang/String;)V
    .locals 2

    const/4 v0, 0x0

    const/4 v1, 0x0

    .line 9
    invoke-virtual {p0, p1, v1, v0, v0}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->a(Ljava/lang/String;Ljava/lang/String;II)V

    return-void
.end method

.method static synthetic c(Lcom/jecelyin/editor/v2/ui/JeEditorActivity;)Lcom/jecelyin/editor/v2/view/menu/a;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->j:Lcom/jecelyin/editor/v2/view/menu/a;

    return-object p0
.end method

.method private f(I)V
    .locals 4

    .line 12
    invoke-virtual {p0}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->w()V

    .line 13
    sget v0, Lcom/jecelyin/editor/v2/j;->je_m_new:I

    if-ne p1, v0, :cond_0

    .line 14
    iget-object p1, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->i:Lcom/jecelyin/editor/v2/ui/g;

    invoke-virtual {p1}, Lcom/jecelyin/editor/v2/ui/g;->f()V

    goto/16 :goto_1

    .line 15
    :cond_0
    sget v0, Lcom/jecelyin/editor/v2/j;->je_m_open:I

    const/4 v1, 0x1

    if-ne p1, v0, :cond_1

    .line 16
    invoke-static {p0, v1}, Lcom/jecelyin/editor/v2/utils/d;->a(Landroid/app/Activity;I)V

    goto/16 :goto_1

    .line 17
    :cond_1
    sget v0, Lcom/jecelyin/editor/v2/j;->je_m_goto_line:I

    if-ne p1, v0, :cond_2

    .line 18
    new-instance p1, Les/tf0;

    invoke-direct {p1, p0}, Les/tf0;-><init>(Landroid/content/Context;)V

    invoke-virtual {p1}, Les/tf0;->c()V

    goto/16 :goto_1

    .line 19
    :cond_2
    sget v0, Lcom/jecelyin/editor/v2/j;->je_m_history:I

    if-ne p1, v0, :cond_3

    .line 20
    new-instance p1, Lcom/jecelyin/editor/v2/ui/f;

    invoke-direct {p1, p0}, Lcom/jecelyin/editor/v2/ui/f;-><init>(Landroid/content/Context;)V

    .line 21
    new-instance v0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity$h;

    invoke-direct {v0, p0}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity$h;-><init>(Lcom/jecelyin/editor/v2/ui/JeEditorActivity;)V

    invoke-virtual {p1, v0}, Lcom/jecelyin/editor/v2/ui/f;->a(Lcom/jecelyin/editor/v2/ui/f$a;)V

    .line 22
    invoke-virtual {p0}, Lcom/jecelyin/common/app/JecActivity;->u()Landroid/content/Context;

    invoke-virtual {p1, p0}, Lcom/jecelyin/editor/v2/ui/f;->a(Landroid/content/Context;)V

    goto/16 :goto_1

    .line 23
    :cond_3
    sget v0, Lcom/jecelyin/editor/v2/j;->je_m_wrap:I

    if-ne p1, v0, :cond_4

    .line 24
    invoke-direct {p0}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->D()Z

    move-result p1

    if-eqz p1, :cond_f

    .line 25
    new-instance p1, Les/xf0;

    invoke-direct {p1, p0}, Les/xf0;-><init>(Landroid/content/Context;)V

    invoke-virtual {p1}, Les/xf0;->c()V

    goto/16 :goto_1

    .line 26
    :cond_4
    sget v0, Lcom/jecelyin/editor/v2/j;->je_m_highlight:I

    const-string v2, ""

    const-string v3, "clk"

    if-ne p1, v0, :cond_5

    .line 27
    new-instance p1, Les/uf0;

    invoke-direct {p1, p0}, Les/uf0;-><init>(Landroid/content/Context;)V

    invoke-virtual {p1}, Les/uf0;->c()V

    .line 28
    iget-object p1, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->k:Lcom/jecelyin/editor/v2/d;

    invoke-virtual {p1}, Lcom/jecelyin/editor/v2/d;->a()V

    const-string p1, "hlm"

    .line 29
    invoke-static {p1, v3, v2}, Lcom/jecelyin/editor/v2/a;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    goto/16 :goto_1

    .line 30
    :cond_5
    sget v0, Lcom/jecelyin/editor/v2/j;->je_m_menu:I

    if-ne p1, v0, :cond_6

    .line 31
    invoke-direct {p0}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->E()V

    .line 32
    iget-object p1, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->e:Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;

    new-instance v0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity$i;

    invoke-direct {v0, p0}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity$i;-><init>(Lcom/jecelyin/editor/v2/ui/JeEditorActivity;)V

    const-wide/16 v1, 0xc8

    invoke-virtual {p1, v0, v1, v2}, Landroid/view/ViewGroup;->postDelayed(Ljava/lang/Runnable;J)Z

    goto/16 :goto_1

    .line 33
    :cond_6
    sget v0, Lcom/jecelyin/editor/v2/j;->je_m_save_all:I

    if-ne p1, v0, :cond_7

    .line 34
    sget-object p1, Lcom/jecelyin/editor/v2/common/Command$CommandEnum;->SAVE:Lcom/jecelyin/editor/v2/common/Command$CommandEnum;

    .line 35
    new-instance v0, Lcom/jecelyin/editor/v2/common/Command;

    invoke-direct {v0, p1}, Lcom/jecelyin/editor/v2/common/Command;-><init>(Lcom/jecelyin/editor/v2/common/Command$CommandEnum;)V

    .line 36
    iget-object p1, v0, Lcom/jecelyin/editor/v2/common/Command;->b:Landroid/os/Bundle;

    const-string v2, "is_cluster"

    invoke-virtual {p1, v2, v1}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V

    .line 37
    new-instance p1, Lcom/jecelyin/editor/v2/ui/JeEditorActivity$j;

    invoke-direct {p1, p0}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity$j;-><init>(Lcom/jecelyin/editor/v2/ui/JeEditorActivity;)V

    iput-object p1, v0, Lcom/jecelyin/editor/v2/common/Command;->c:Ljava/lang/Object;

    .line 38
    invoke-virtual {p0, v0}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->a(Lcom/jecelyin/editor/v2/common/Command;)V

    goto/16 :goto_1

    .line 39
    :cond_7
    sget v0, Lcom/jecelyin/editor/v2/j;->je_m_theme:I

    if-ne p1, v0, :cond_8

    .line 40
    new-instance p1, Les/of0;

    invoke-virtual {p0}, Lcom/jecelyin/common/app/JecActivity;->u()Landroid/content/Context;

    invoke-direct {p1, p0}, Les/of0;-><init>(Landroid/content/Context;)V

    invoke-virtual {p1}, Les/of0;->c()V

    .line 41
    iget-object p1, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->k:Lcom/jecelyin/editor/v2/d;

    invoke-virtual {p1}, Lcom/jecelyin/editor/v2/d;->b()V

    const-string p1, "thm"

    .line 42
    invoke-static {p1, v3, v2}, Lcom/jecelyin/editor/v2/a;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_1

    .line 43
    :cond_8
    sget v0, Lcom/jecelyin/editor/v2/j;->je_m_encoding:I

    if-ne p1, v0, :cond_9

    .line 44
    new-instance p1, Les/pf0;

    invoke-direct {p1, p0}, Les/pf0;-><init>(Landroid/content/Context;)V

    invoke-virtual {p1}, Les/pf0;->c()V

    goto :goto_1

    .line 45
    :cond_9
    sget v0, Lcom/jecelyin/editor/v2/j;->je_m_color:I

    if-ne p1, v0, :cond_a

    goto :goto_1

    .line 46
    :cond_a
    sget v0, Lcom/jecelyin/editor/v2/j;->je_m_run:I

    if-ne p1, v0, :cond_b

    .line 47
    new-instance p1, Les/vf0;

    invoke-direct {p1, p0}, Les/vf0;-><init>(Landroid/content/Context;)V

    invoke-virtual {p1}, Les/vf0;->c()V

    goto :goto_1

    .line 48
    :cond_b
    sget v0, Lcom/jecelyin/editor/v2/j;->je_m_settings:I

    if-ne p1, v0, :cond_c

    const/4 p1, 0x5

    .line 49
    invoke-static {p0, p1}, Lcom/jecelyin/editor/v2/ui/settings/SettingsActivity;->a(Landroid/app/Activity;I)V

    goto :goto_1

    .line 50
    :cond_c
    sget v0, Lcom/jecelyin/editor/v2/j;->je_m_edit:I

    if-ne p1, v0, :cond_e

    .line 51
    iget-object p1, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->k:Lcom/jecelyin/editor/v2/d;

    invoke-virtual {p1}, Lcom/jecelyin/editor/v2/d;->x()Z

    move-result p1

    xor-int/2addr p1, v1

    .line 52
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->k:Lcom/jecelyin/editor/v2/d;

    invoke-virtual {v0, p1}, Lcom/jecelyin/editor/v2/d;->a(Z)V

    .line 53
    new-instance v0, Lcom/jecelyin/editor/v2/common/Command;

    sget-object v1, Lcom/jecelyin/editor/v2/common/Command$CommandEnum;->READONLY_MODE:Lcom/jecelyin/editor/v2/common/Command$CommandEnum;

    invoke-direct {v0, v1}, Lcom/jecelyin/editor/v2/common/Command;-><init>(Lcom/jecelyin/editor/v2/common/Command$CommandEnum;)V

    invoke-virtual {p0, v0}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->a(Lcom/jecelyin/editor/v2/common/Command;)V

    .line 54
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->h:Landroid/widget/RelativeLayout;

    if-eqz p1, :cond_d

    const/16 p1, 0x8

    goto :goto_0

    :cond_d
    const/4 p1, 0x0

    :goto_0
    invoke-virtual {v0, p1}, Landroid/widget/RelativeLayout;->setVisibility(I)V

    goto :goto_1

    .line 55
    :cond_e
    invoke-static {p0}, Lcom/jecelyin/editor/v2/view/menu/b;->a(Landroid/content/Context;)Lcom/jecelyin/editor/v2/view/menu/b;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/jecelyin/editor/v2/view/menu/b;->a(I)Lcom/jecelyin/editor/v2/common/Command$CommandEnum;

    move-result-object p1

    .line 56
    sget-object v0, Lcom/jecelyin/editor/v2/common/Command$CommandEnum;->NONE:Lcom/jecelyin/editor/v2/common/Command$CommandEnum;

    if-eq p1, v0, :cond_f

    .line 57
    new-instance v0, Lcom/jecelyin/editor/v2/common/Command;

    invoke-direct {v0, p1}, Lcom/jecelyin/editor/v2/common/Command;-><init>(Lcom/jecelyin/editor/v2/common/Command$CommandEnum;)V

    invoke-virtual {p0, v0}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->b(Lcom/jecelyin/editor/v2/common/Command;)V

    :cond_f
    :goto_1
    return-void
.end method

.method private f(Z)V
    .locals 3

    const/4 v0, 0x2

    if-eqz p1, :cond_0

    .line 1
    sget p1, Lcom/jecelyin/editor/v2/j;->je_m_save:I

    invoke-virtual {p0, p1, v0}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->a(II)V

    .line 2
    sget p1, Lcom/jecelyin/editor/v2/j;->je_m_undo:I

    invoke-virtual {p0, p1, v0}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->a(II)V

    goto :goto_0

    .line 3
    :cond_0
    iget-object p1, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->i:Lcom/jecelyin/editor/v2/ui/g;

    invoke-virtual {p1}, Lcom/jecelyin/editor/v2/ui/g;->d()Lcom/jecelyin/editor/v2/adapter/EditorAdapter;

    move-result-object p1

    invoke-virtual {p1}, Lcom/jecelyin/editor/v2/adapter/EditorAdapter;->b()Lcom/jecelyin/editor/v2/ui/b;

    move-result-object p1

    if-nez p1, :cond_1

    .line 4
    sget p1, Lcom/jecelyin/editor/v2/j;->je_m_save:I

    invoke-virtual {p0, p1, v0}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->a(II)V

    .line 5
    sget p1, Lcom/jecelyin/editor/v2/j;->je_m_undo:I

    invoke-virtual {p0, p1, v0}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->a(II)V

    goto :goto_0

    .line 6
    :cond_1
    sget v1, Lcom/jecelyin/editor/v2/j;->je_m_save:I

    .line 7
    invoke-virtual {p1}, Lcom/jecelyin/editor/v2/ui/b;->i()Z

    move-result v2

    if-eqz v2, :cond_2

    const/4 v0, 0x0

    .line 8
    :cond_2
    invoke-virtual {p0, v1, v0}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->a(II)V

    .line 9
    iget-object p1, p1, Lcom/jecelyin/editor/v2/ui/b;->b:Lcom/jecelyin/editor/v2/widget/text/EditAreaView;

    if-eqz p1, :cond_3

    .line 10
    new-instance v0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity$f;

    invoke-direct {v0, p0}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity$f;-><init>(Lcom/jecelyin/editor/v2/ui/JeEditorActivity;)V

    invoke-virtual {p1, v0}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->b(Lcom/jecelyin/editor/v2/widget/text/c;)V

    .line 11
    new-instance v0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity$g;

    invoke-direct {v0, p0}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity$g;-><init>(Lcom/jecelyin/editor/v2/ui/JeEditorActivity;)V

    invoke-virtual {p1, v0}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->a(Lcom/jecelyin/editor/v2/widget/text/c;)V

    :cond_3
    :goto_0
    return-void
.end method


# virtual methods
.method public A()Lcom/jecelyin/editor/v2/ui/g;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->i:Lcom/jecelyin/editor/v2/ui/g;

    return-object v0
.end method

.method public B()Lcom/jecelyin/editor/v2/view/TabViewPager;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->d:Lcom/jecelyin/editor/v2/view/TabViewPager;

    return-object v0
.end method

.method public a(II)V
    .locals 4
    .param p1    # I
        .annotation build Landroidx/annotation/IdRes;
        .end annotation
    .end param

    .line 3
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->b:Landroidx/appcompat/widget/Toolbar;

    invoke-virtual {v0}, Landroidx/appcompat/widget/Toolbar;->getMenu()Landroid/view/Menu;

    move-result-object v0

    invoke-interface {v0, p1}, Landroid/view/Menu;->findItem(I)Landroid/view/MenuItem;

    move-result-object p1

    if-nez p1, :cond_0

    return-void

    .line 4
    :cond_0
    invoke-interface {p1}, Landroid/view/MenuItem;->getActionView()Landroid/view/View;

    move-result-object v0

    .line 5
    sget v1, Lcom/jecelyin/editor/v2/j;->icon:I

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    .line 6
    sget v2, Lcom/jecelyin/editor/v2/j;->title:I

    invoke-virtual {v0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    const/4 v3, 0x2

    if-ne p2, v3, :cond_1

    const/4 p2, 0x0

    .line 7
    invoke-interface {p1, p2}, Landroid/view/MenuItem;->setEnabled(Z)Landroid/view/MenuItem;

    .line 8
    invoke-virtual {v0, p2}, Landroid/view/View;->setEnabled(Z)V

    .line 9
    sget p1, Lcom/jecelyin/editor/v2/g;->je_c20_ffffff:I

    invoke-static {p0, p1}, Landroidx/core/content/ContextCompat;->getColor(Landroid/content/Context;I)I

    move-result p1

    invoke-virtual {v2, p1}, Landroid/widget/TextView;->setTextColor(I)V

    .line 10
    invoke-virtual {v1}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;

    move-result-object p1

    invoke-static {p1}, Lcom/jecelyin/editor/v2/ui/e;->b(Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable;

    move-result-object p1

    invoke-virtual {v1, p1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    goto :goto_0

    :cond_1
    const/4 p2, 0x1

    .line 11
    invoke-interface {p1, p2}, Landroid/view/MenuItem;->setEnabled(Z)Landroid/view/MenuItem;

    .line 12
    invoke-virtual {v0, p2}, Landroid/view/View;->setEnabled(Z)V

    .line 13
    invoke-interface {p1}, Landroid/view/MenuItem;->getGroupId()I

    move-result p1

    if-ne p1, p2, :cond_2

    .line 14
    invoke-virtual {v1}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;

    move-result-object p1

    invoke-static {p1}, Lcom/jecelyin/editor/v2/ui/e;->c(Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable;

    move-result-object p1

    invoke-virtual {v1, p1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 15
    sget p1, Lcom/jecelyin/editor/v2/g;->je_c60_ffffff:I

    invoke-static {p0, p1}, Landroidx/core/content/ContextCompat;->getColor(Landroid/content/Context;I)I

    move-result p1

    invoke-virtual {v2, p1}, Landroid/widget/TextView;->setTextColor(I)V

    goto :goto_0

    .line 16
    :cond_2
    invoke-virtual {v1}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;

    move-result-object p1

    invoke-static {p1}, Lcom/jecelyin/editor/v2/ui/e;->a(Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable;

    move-result-object p1

    invoke-virtual {v1, p1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 17
    sget p1, Lcom/jecelyin/editor/v2/g;->je_c60_ffffff:I

    invoke-static {p0, p1}, Landroidx/core/content/ContextCompat;->getColor(Landroid/content/Context;I)I

    move-result p1

    invoke-virtual {v2, p1}, Landroid/widget/TextView;->setTextColor(I)V

    :goto_0
    return-void
.end method

.method public a(Lcom/jecelyin/editor/v2/common/Command;)V
    .locals 1

    .line 18
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->i:Lcom/jecelyin/editor/v2/ui/g;

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/ui/g;->d()Lcom/jecelyin/editor/v2/adapter/EditorAdapter;

    move-result-object v0

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/adapter/EditorAdapter;->d()Les/lf0;

    move-result-object v0

    iput-object v0, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->l:Les/lf0;

    .line 19
    invoke-virtual {v0, p1}, Les/lf0;->a(Lcom/jecelyin/editor/v2/common/Command;)V

    .line 20
    iget-object p1, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->l:Les/lf0;

    invoke-virtual {p1}, Les/lf0;->a()V

    return-void
.end method

.method public a(Lcom/jecelyin/editor/v2/common/Command;Lcom/jecelyin/editor/v2/ui/b;)V
    .locals 1

    const/4 v0, 0x0

    .line 21
    iput-object v0, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->l:Les/lf0;

    if-eqz p2, :cond_0

    .line 22
    invoke-virtual {p2, p1}, Lcom/jecelyin/editor/v2/ui/b;->a(Lcom/jecelyin/editor/v2/common/Command;)Z

    .line 23
    iget-object p1, p1, Lcom/jecelyin/editor/v2/common/Command;->a:Lcom/jecelyin/editor/v2/common/Command$CommandEnum;

    sget-object v0, Lcom/jecelyin/editor/v2/common/Command$CommandEnum;->CHANGE_MODE:Lcom/jecelyin/editor/v2/common/Command$CommandEnum;

    if-ne p1, v0, :cond_0

    .line 24
    iget-object p1, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->b:Landroidx/appcompat/widget/Toolbar;

    invoke-virtual {p2}, Lcom/jecelyin/editor/v2/ui/b;->h()Ljava/lang/CharSequence;

    move-result-object p2

    invoke-virtual {p1, p2}, Landroidx/appcompat/widget/Toolbar;->setTitle(Ljava/lang/CharSequence;)V

    :cond_0
    return-void
.end method

.method public a(Les/sf0$k;)V
    .locals 0

    return-void
.end method

.method public a(Ljava/lang/CharSequence;)V
    .locals 2

    if-nez p1, :cond_0

    return-void

    .line 35
    :cond_0
    new-instance v0, Lcom/jecelyin/editor/v2/common/Command;

    sget-object v1, Lcom/jecelyin/editor/v2/common/Command$CommandEnum;->INSERT_TEXT:Lcom/jecelyin/editor/v2/common/Command$CommandEnum;

    invoke-direct {v0, v1}, Lcom/jecelyin/editor/v2/common/Command;-><init>(Lcom/jecelyin/editor/v2/common/Command$CommandEnum;)V

    .line 36
    iput-object p1, v0, Lcom/jecelyin/editor/v2/common/Command;->c:Ljava/lang/Object;

    .line 37
    invoke-virtual {p0, v0}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->b(Lcom/jecelyin/editor/v2/common/Command;)V

    return-void
.end method

.method public a(Ljava/lang/String;Ljava/lang/String;)V
    .locals 1

    const/4 v0, 0x3

    .line 25
    invoke-static {p0, p1, p2, v0}, Lcom/jecelyin/editor/v2/utils/d;->a(Landroid/app/Activity;Ljava/lang/String;Ljava/lang/String;I)V

    return-void
.end method

.method public a(Ljava/lang/String;Ljava/lang/String;II)V
    .locals 6

    .line 26
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    return-void

    .line 27
    :cond_0
    new-instance v0, Ljava/io/File;

    invoke-direct {v0, p1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 28
    invoke-virtual {v0}, Ljava/io/File;->canRead()Z

    move-result v1

    if-nez v1, :cond_1

    goto :goto_0

    .line 29
    :cond_1
    invoke-virtual {v0}, Ljava/io/File;->isFile()Z

    move-result v1

    if-nez v1, :cond_2

    .line 30
    sget p1, Lcom/jecelyin/editor/v2/m;->je_file_not_exists:I

    invoke-static {p0, p1}, Lcom/jecelyin/common/utils/e;->b(Landroid/content/Context;I)V

    return-void

    .line 31
    :cond_2
    :goto_0
    invoke-virtual {v0}, Ljava/io/File;->length()J

    move-result-wide v1

    const-wide/32 v3, 0x800000

    cmp-long v5, v1, v3

    if-lez v5, :cond_3

    .line 32
    sget p1, Lcom/jecelyin/editor/v2/m;->operation_failed:I

    invoke-static {p0, p1}, Lcom/jecelyin/common/utils/e;->b(Landroid/content/Context;I)V

    return-void

    .line 33
    :cond_3
    iget-object v1, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->i:Lcom/jecelyin/editor/v2/ui/g;

    invoke-virtual {v1, v0, p3, p4, p2}, Lcom/jecelyin/editor/v2/ui/g;->a(Ljava/io/File;IILjava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_4

    return-void

    .line 34
    :cond_4
    invoke-static {p0}, Lcom/jecelyin/editor/v2/utils/b;->a(Landroid/content/Context;)Lcom/jecelyin/editor/v2/utils/b;

    move-result-object v0

    invoke-virtual {v0, p1, p2, p3, p4}, Lcom/jecelyin/editor/v2/utils/b;->a(Ljava/lang/String;Ljava/lang/String;II)V

    return-void
.end method

.method public b(Lcom/jecelyin/editor/v2/common/Command;)V
    .locals 2

    const/4 v0, 0x0

    .line 2
    iput-object v0, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->l:Les/lf0;

    .line 3
    invoke-virtual {p0}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->y()Lcom/jecelyin/editor/v2/ui/b;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 4
    invoke-virtual {v0, p1}, Lcom/jecelyin/editor/v2/ui/b;->a(Lcom/jecelyin/editor/v2/common/Command;)Z

    .line 5
    iget-object p1, p1, Lcom/jecelyin/editor/v2/common/Command;->a:Lcom/jecelyin/editor/v2/common/Command$CommandEnum;

    sget-object v1, Lcom/jecelyin/editor/v2/common/Command$CommandEnum;->CHANGE_MODE:Lcom/jecelyin/editor/v2/common/Command$CommandEnum;

    if-ne p1, v1, :cond_0

    .line 6
    iget-object p1, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->b:Landroidx/appcompat/widget/Toolbar;

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/ui/b;->h()Ljava/lang/CharSequence;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroidx/appcompat/widget/Toolbar;->setTitle(Ljava/lang/CharSequence;)V

    :cond_0
    return-void
.end method

.method public finish()V
    .locals 0

    .line 1
    invoke-super {p0}, Landroid/app/Activity;->finish()V

    .line 2
    invoke-static {}, Lcom/jecelyin/editor/v2/d;->C()V

    return-void
.end method

.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 2

    .line 1
    invoke-super {p0, p1, p2, p3}, Lcom/jecelyin/common/app/JecActivity;->onActivityResult(IILandroid/content/Intent;)V

    const/4 v0, -0x1

    if-eq p2, v0, :cond_0

    return-void

    :cond_0
    const/4 p2, 0x1

    if-eq p1, p2, :cond_5

    const/4 p2, 0x3

    if-eq p1, p2, :cond_1

    goto :goto_1

    .line 2
    :cond_1
    invoke-static {p3}, Lcom/jecelyin/editor/v2/utils/d;->b(Landroid/content/Intent;)Ljava/lang/String;

    move-result-object p1

    .line 3
    invoke-static {p3}, Lcom/jecelyin/editor/v2/utils/d;->a(Landroid/content/Intent;)Ljava/lang/String;

    move-result-object p2

    if-eqz p1, :cond_4

    .line 4
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p3

    if-eqz p3, :cond_2

    goto :goto_0

    .line 5
    :cond_2
    iget-object p3, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->i:Lcom/jecelyin/editor/v2/ui/g;

    invoke-virtual {p3}, Lcom/jecelyin/editor/v2/ui/g;->d()Lcom/jecelyin/editor/v2/adapter/EditorAdapter;

    move-result-object p3

    invoke-virtual {p3}, Lcom/jecelyin/editor/v2/adapter/EditorAdapter;->b()Lcom/jecelyin/editor/v2/ui/b;

    move-result-object p3

    if-eqz p3, :cond_3

    .line 6
    iget-object v0, p3, Lcom/jecelyin/editor/v2/ui/b;->b:Lcom/jecelyin/editor/v2/widget/text/EditAreaView;

    new-instance v1, Lcom/jecelyin/editor/v2/ui/JeEditorActivity$a;

    invoke-direct {v1, p0, p3, p1, p2}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity$a;-><init>(Lcom/jecelyin/editor/v2/ui/JeEditorActivity;Lcom/jecelyin/editor/v2/ui/b;Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v0, v1}, Lcom/jecelyin/editor/v2/widget/text/EditAreaView;->c(Lcom/jecelyin/editor/v2/widget/text/c;)V

    goto :goto_1

    .line 7
    :cond_3
    sget p1, Lcom/jecelyin/editor/v2/m;->operation_failed:I

    invoke-static {p0, p1}, Lcom/jecelyin/common/utils/e;->b(Landroid/content/Context;I)V

    goto :goto_1

    .line 8
    :cond_4
    :goto_0
    sget p1, Lcom/jecelyin/editor/v2/m;->je_illegal_filename:I

    invoke-static {p0, p1}, Lcom/jecelyin/common/utils/e;->b(Landroid/content/Context;I)V

    goto :goto_1

    :cond_5
    if-nez p3, :cond_6

    goto :goto_1

    .line 9
    :cond_6
    invoke-static {p3}, Lcom/jecelyin/editor/v2/utils/d;->c(Landroid/content/Intent;)Ljava/lang/String;

    move-result-object p1

    invoke-direct {p0, p1}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->b(Ljava/lang/String;)V

    :goto_1
    return-void
.end method

.method public onBackPressed()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->e:Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;

    if-eqz v0, :cond_1

    const/4 v1, 0x3

    .line 2
    invoke-virtual {v0, v1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->e(I)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 3
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->e:Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;

    invoke-virtual {v0, v1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->a(I)V

    return-void

    .line 4
    :cond_0
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->e:Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;

    const/4 v1, 0x5

    invoke-virtual {v0, v1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->e(I)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 5
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->e:Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;

    invoke-virtual {v0, v1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->a(I)V

    return-void

    .line 6
    :cond_1
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->i:Lcom/jecelyin/editor/v2/ui/g;

    if-eqz v0, :cond_2

    .line 7
    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/ui/g;->a()V

    :cond_2
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 2

    .line 1
    invoke-super {p0, p1}, Lcom/jecelyin/editor/v2/FullScreenActivity;->onCreate(Landroid/os/Bundle;)V

    .line 2
    invoke-static {p0}, Lcom/jecelyin/editor/v2/d;->a(Landroid/content/Context;)Lcom/jecelyin/editor/v2/d;

    move-result-object p1

    iput-object p1, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->k:Lcom/jecelyin/editor/v2/d;

    .line 3
    invoke-static {p0}, Lcom/jecelyin/editor/v2/ui/e;->a(Landroid/content/Context;)V

    .line 4
    sget p1, Lcom/jecelyin/editor/v2/k;->je_main_activity:I

    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->setContentView(I)V

    .line 5
    sget p1, Lcom/jecelyin/editor/v2/j;->toolbar:I

    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroidx/appcompat/widget/Toolbar;

    iput-object p1, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->b:Landroidx/appcompat/widget/Toolbar;

    .line 6
    sget p1, Lcom/jecelyin/editor/v2/j;->loading_layout:I

    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/LinearLayout;

    iput-object p1, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->c:Landroid/widget/LinearLayout;

    .line 7
    sget p1, Lcom/jecelyin/editor/v2/j;->tab_pager:I

    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Lcom/jecelyin/editor/v2/view/TabViewPager;

    iput-object p1, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->d:Lcom/jecelyin/editor/v2/view/TabViewPager;

    .line 8
    sget p1, Lcom/jecelyin/editor/v2/j;->drawer_layout:I

    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;

    iput-object p1, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->e:Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;

    .line 9
    new-instance v0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity$c;

    invoke-direct {v0, p0}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity$c;-><init>(Lcom/jecelyin/editor/v2/ui/JeEditorActivity;)V

    invoke-virtual {p1, v0}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->a(Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$f;)V

    .line 10
    sget p1, Lcom/jecelyin/editor/v2/j;->tabRecyclerView:I

    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroidx/recyclerview/widget/RecyclerView;

    iput-object p1, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->f:Landroidx/recyclerview/widget/RecyclerView;

    .line 11
    sget p1, Lcom/jecelyin/editor/v2/j;->bottomDrawer:I

    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/RelativeLayout;

    iput-object p1, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->h:Landroid/widget/RelativeLayout;

    .line 12
    sget p1, Lcom/jecelyin/editor/v2/j;->symbolBarToggle:I

    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    const/high16 v0, 0x43340000    # 180.0f

    .line 13
    invoke-static {p1, v0}, Landroidx/core/view/ViewCompat;->setRotation(Landroid/view/View;F)V

    .line 14
    sget v0, Lcom/jecelyin/editor/v2/j;->bottom_drawer_layout:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/jecelyin/editor/v2/widget/BottomDrawerLayout;

    .line 15
    invoke-virtual {v0, p1}, Lcom/jecelyin/editor/v2/widget/BottomDrawerLayout;->setDrawerToggleButton(Landroid/view/View;)V

    .line 16
    sget p1, Lcom/jecelyin/editor/v2/j;->symbolBarLayout:I

    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Lcom/jecelyin/editor/v2/widget/SymbolBarLayout;

    iput-object p1, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->g:Lcom/jecelyin/editor/v2/widget/SymbolBarLayout;

    .line 17
    new-instance v0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity$d;

    invoke-direct {v0, p0}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity$d;-><init>(Lcom/jecelyin/editor/v2/ui/JeEditorActivity;)V

    invoke-virtual {p1, v0}, Lcom/jecelyin/editor/v2/widget/SymbolBarLayout;->setOnSymbolCharClickListener(Lcom/jecelyin/editor/v2/widget/SymbolBarLayout$a;)V

    .line 18
    sget p1, Landroid/os/Build$VERSION;->SDK_INT:I

    const/4 v0, 0x1

    const/16 v1, 0x13

    if-gt p1, v1, :cond_0

    .line 19
    iget-object p1, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->e:Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;

    invoke-virtual {p0, p1, v0}, Lcom/jecelyin/common/app/JecActivity;->a(Landroid/view/ViewGroup;Z)V

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    .line 20
    invoke-virtual {p0, p1, v0}, Lcom/jecelyin/common/app/JecActivity;->a(Landroid/view/ViewGroup;Z)V

    .line 21
    :goto_0
    invoke-direct {p0}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->C()V

    .line 22
    invoke-direct {p0}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->K()V

    .line 23
    iget-object p1, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->e:Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;

    const/4 v0, 0x0

    invoke-virtual {p1, v0}, Landroid/view/ViewGroup;->setEnabled(Z)V

    .line 24
    iget-object p1, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->e:Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;

    invoke-virtual {p1, v0}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->setScrimColor(I)V

    const-string p1, "android.permission.READ_EXTERNAL_STORAGE"

    .line 25
    invoke-static {p0, p1}, Landroidx/core/content/ContextCompat;->checkSelfPermission(Landroid/content/Context;Ljava/lang/String;)I

    move-result p1

    const/4 v1, -0x1

    if-eq p1, v1, :cond_2

    const-string p1, "android.permission.WRITE_EXTERNAL_STORAGE"

    .line 26
    invoke-static {p0, p1}, Landroidx/core/content/ContextCompat;->checkSelfPermission(Landroid/content/Context;Ljava/lang/String;)I

    move-result p1

    if-ne p1, v1, :cond_1

    goto :goto_1

    .line 27
    :cond_1
    invoke-direct {p0}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->L()V

    goto :goto_2

    .line 28
    :cond_2
    :goto_1
    invoke-direct {p0}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->J()V

    .line 29
    :goto_2
    iget-object p1, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->n:Landroid/content/Intent;

    invoke-direct {p0, p1, v0}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->a(Landroid/content/Intent;I)V

    return-void
.end method

.method public onMenuItemClick(Landroid/view/MenuItem;)Z
    .locals 0

    .line 1
    invoke-interface {p1}, Landroid/view/MenuItem;->getItemId()I

    move-result p1

    invoke-direct {p0, p1}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->f(I)V

    const/4 p1, 0x1

    return p1
.end method

.method protected onNewIntent(Landroid/content/Intent;)V
    .locals 0

    .line 1
    invoke-super {p0, p1}, Landroidx/fragment/app/FragmentActivity;->onNewIntent(Landroid/content/Intent;)V

    .line 2
    invoke-virtual {p0, p1}, Landroid/app/Activity;->setIntent(Landroid/content/Intent;)V

    .line 3
    invoke-direct {p0}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->H()V

    return-void
.end method

.method protected onPause()V
    .locals 0

    .line 1
    invoke-super {p0}, Landroidx/fragment/app/FragmentActivity;->onPause()V

    return-void
.end method

.method public onPrepareOptionsMenu(Landroid/view/Menu;)Z
    .locals 0

    .line 1
    sget p1, Lcom/jecelyin/editor/v2/j;->je_m_menu:I

    invoke-direct {p0, p1}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->f(I)V

    const/4 p1, 0x0

    return p1
.end method

.method public onRequestPermissionsResult(I[Ljava/lang/String;[I)V
    .locals 2
    .param p2    # [Ljava/lang/String;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .param p3    # [I
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    const/4 p1, 0x0

    .line 1
    :goto_0
    array-length v0, p2

    if-ge p1, v0, :cond_1

    .line 2
    aget v0, p3, p1

    const/4 v1, -0x1

    if-ne v0, v1, :cond_0

    .line 3
    invoke-direct {p0}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->J()V

    return-void

    :cond_0
    add-int/lit8 p1, p1, 0x1

    goto :goto_0

    .line 4
    :cond_1
    invoke-direct {p0}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->L()V

    return-void
.end method

.method protected onRestoreInstanceState(Landroid/os/Bundle;)V
    .locals 0

    .line 1
    :try_start_0
    invoke-super {p0, p1}, Landroid/app/Activity;->onRestoreInstanceState(Landroid/os/Bundle;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    .line 2
    invoke-static {p1}, Lcom/jecelyin/common/utils/c;->a(Ljava/lang/Throwable;)I

    :goto_0
    return-void
.end method

.method protected onResume()V
    .locals 0

    .line 1
    invoke-super {p0}, Landroidx/fragment/app/FragmentActivity;->onResume()V

    return-void
.end method

.method protected onSaveInstanceState(Landroid/os/Bundle;)V
    .locals 1

    .line 1
    invoke-super {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->onSaveInstanceState(Landroid/os/Bundle;)V

    .line 2
    iget-object p1, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->k:Lcom/jecelyin/editor/v2/d;

    if-eqz p1, :cond_0

    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->i:Lcom/jecelyin/editor/v2/ui/g;

    if-eqz v0, :cond_0

    .line 3
    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/ui/g;->c()I

    move-result v0

    invoke-virtual {p1, v0}, Lcom/jecelyin/editor/v2/d;->a(I)V

    :cond_0
    return-void
.end method

.method public onSharedPreferenceChanged(Landroid/content/SharedPreferences;Ljava/lang/String;)V
    .locals 5

    .line 1
    iget-object p1, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->b:Landroidx/appcompat/widget/Toolbar;

    if-nez p1, :cond_0

    return-void

    :cond_0
    const/4 p1, -0x1

    .line 2
    invoke-virtual {p2}, Ljava/lang/String;->hashCode()I

    move-result v0

    const v1, 0x837cf94

    const/4 v2, 0x0

    const/4 v3, 0x2

    const/4 v4, 0x1

    if-eq v0, v1, :cond_3

    const v1, 0x283dcd80

    if-eq v0, v1, :cond_2

    const v1, 0x75fa8619

    if-eq v0, v1, :cond_1

    goto :goto_0

    :cond_1
    const-string v0, "pref_screen_orientation"

    invoke-virtual {p2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p2

    if-eqz p2, :cond_4

    const/4 p1, 0x1

    goto :goto_0

    :cond_2
    const-string v0, "readonly_mode"

    invoke-virtual {p2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p2

    if-eqz p2, :cond_4

    const/4 p1, 0x2

    goto :goto_0

    :cond_3
    const-string v0, "pref_enable_highlight"

    invoke-virtual {p2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p2

    if-eqz p2, :cond_4

    const/4 p1, 0x0

    :cond_4
    :goto_0
    if-eqz p1, :cond_8

    if-eq p1, v4, :cond_7

    if-eq p1, v3, :cond_5

    goto :goto_1

    .line 3
    :cond_5
    iget-object p1, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->g:Lcom/jecelyin/editor/v2/widget/SymbolBarLayout;

    iget-object p2, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->k:Lcom/jecelyin/editor/v2/d;

    invoke-virtual {p2}, Lcom/jecelyin/editor/v2/d;->x()Z

    move-result p2

    if-eqz p2, :cond_6

    const/16 v2, 0x8

    :cond_6
    invoke-virtual {p1, v2}, Landroid/view/ViewGroup;->setVisibility(I)V

    goto :goto_1

    .line 4
    :cond_7
    invoke-direct {p0}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->K()V

    goto :goto_1

    .line 5
    :cond_8
    new-instance p1, Lcom/jecelyin/editor/v2/common/Command;

    sget-object p2, Lcom/jecelyin/editor/v2/common/Command$CommandEnum;->ENABLE_HIGHLIGHT:Lcom/jecelyin/editor/v2/common/Command$CommandEnum;

    invoke-direct {p1, p2}, Lcom/jecelyin/editor/v2/common/Command;-><init>(Lcom/jecelyin/editor/v2/common/Command$CommandEnum;)V

    .line 6
    iget-object p2, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->k:Lcom/jecelyin/editor/v2/d;

    invoke-virtual {p2}, Lcom/jecelyin/editor/v2/d;->t()Z

    move-result p2

    invoke-static {p2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object p2

    iput-object p2, p1, Lcom/jecelyin/editor/v2/common/Command;->c:Ljava/lang/Object;

    .line 7
    invoke-virtual {p0, p1}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->a(Lcom/jecelyin/editor/v2/common/Command;)V

    :goto_1
    return-void
.end method

.method public w()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->e:Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;

    const v1, 0x800003

    invoke-virtual {v0, v1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->e(I)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 2
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->e:Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;

    invoke-virtual {v0, v1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->a(I)V

    :cond_0
    return-void
.end method

.method public x()V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->l:Les/lf0;

    if-nez v0, :cond_0

    return-void

    .line 2
    :cond_0
    invoke-virtual {v0}, Les/lf0;->a()V

    return-void
.end method

.method public y()Lcom/jecelyin/editor/v2/ui/b;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->i:Lcom/jecelyin/editor/v2/ui/g;

    if-eqz v0, :cond_1

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/ui/g;->d()Lcom/jecelyin/editor/v2/adapter/EditorAdapter;

    move-result-object v0

    if-nez v0, :cond_0

    goto :goto_0

    .line 2
    :cond_0
    iget-object v0, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->i:Lcom/jecelyin/editor/v2/ui/g;

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/ui/g;->d()Lcom/jecelyin/editor/v2/adapter/EditorAdapter;

    move-result-object v0

    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/adapter/EditorAdapter;->b()Lcom/jecelyin/editor/v2/ui/b;

    move-result-object v0

    return-object v0

    :cond_1
    :goto_0
    const/4 v0, 0x0

    return-object v0
.end method

.method public z()Ljava/lang/String;
    .locals 1

    .line 1
    invoke-virtual {p0}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->y()Lcom/jecelyin/editor/v2/ui/b;

    move-result-object v0

    if-nez v0, :cond_0

    const/4 v0, 0x0

    return-object v0

    .line 2
    :cond_0
    invoke-virtual {v0}, Lcom/jecelyin/editor/v2/ui/b;->e()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method
